.test{
    position: absolute;
    left: 30%;
    top:20%;
    width: 100px;
    height: 100px;
    background-color: black;
}

.test2{
    position: absolute;
    left: 50%;
    top:20%;
    width: 100px;
    height: 100px;
    background-color: red;
}
.section {
    padding-top: 50px;
}
.testClass1{
    font-size: 36px;
    -webkit-transition: all 3s ease-in;
    -moz-transition: all 3s ease-in;
    transition: all 3s ease-in;
}

.testClass2{
    background-color: transparent;
    position:sticky;
    top: 0;
    z-index: 99;
}